from typing import List

class Solution:
    def calcEquation(self, equations: List[List[str]], values: List[float], queries: List[List[str]]) -> List[float]:
        ans = {} # {(a,b): 2}
        for equation, value in zip(equations, values):
            ans[tuple(equation)] = value
        
        def get_value(equation):
            if equation in ans:
                return ans[equation]
            
            for key, value in ans:
                                

